package org.bhf.json;

import java.io.Serializable;

/**
 * Simple POJO
 */
public class CyclicPerson implements Serializable
{
    private CyclicPerson    parent;
    private String          name;
    private int             age;
    private String          no;
    private Sex             sex;

    public CyclicPerson() { }

    public CyclicPerson( String name, int age, Sex sex, CyclicPerson parent )
    {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.parent = parent;
    }

    public CyclicPerson getParent()
    {
        return parent;
    }

    public void setParent( CyclicPerson parent )
    {
        this.parent = parent;
    }

    public String getName()
    {
        return name;
    }

    public void setName( final String name )
    {
        this.name = name;
    }

    public int getAge()
    {
        return age;
    }

    public void setAge( final int age )
    {
        this.age = age;
    }

    @JSONTransient
    public String getNo()
    {
        return no;
    }

    public void setNo( String no )
    {
        this.no = no;
    }

    public Sex getSex()
    {
        return sex;
    }

    public void setSex( Sex sex )
    {
        this.sex = sex;
    }
}
